<%@page import="com.user.bean.Page"%>
<%@page import="com.user.bean.User"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆成功，显示所有</title>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/showAll.js"></script>
</head>
	
<body>
	<div id="fy">
	<table border="1" cellspacing="0">
		<tr>
			<th>用户</th>
			<th>姓名</th>
			<th>性别</th>
			<th>年龄</th>
			<th>身份证号</th>
			<th>电话</th>
			<th>地址</th>
			<th>邮箱</th>
			<th>操作</th>
		</tr>
		
		<c:forEach var="user" items="${userList }">
			<tr>
			<td class="userId">${user.userId}</td>
			<td class="name">${user.userName}</td>
			<td class="sex">${user.sex}</td>
			<td class="age">${user.age}</td>
			<td class="cardID">${user.idcard}</td>
			<td class="phone">${user.phone}</td>
			<td class="address">${user.address}</td>
			<td class="email">${user.email}</td>
			<td>
				<input type="button" name="update" value="修改"/>
				<input type="button" name="delete" value="删除"/>
				<input type="button" name="info" value="查看"/>
			</td>
		</tr>
		</c:forEach>
		
		
		<tr>
			<td colspan="9">
				<h3>
					<c:forEach begin="1" end="${page.sumPage }" step="1" varStatus="statu">
						<span class="pages">${statu.index }</span>
					</c:forEach>
				</h3>
			</td>
		</tr>
	</table>
	</div>
	</body>
</html>